package com.xiaoyun.constant;

public class Constants {
    //商户优惠券 kafka topic
    public static final String TEMPLATE_TOPIC = "merchants-template";
    //token 文件 存储目录
    public static final String TOKEN_DIR = "/tmp/token/";
    //已使用的 token文件名后缀
    public static final String USER_TOKEN_SUFFIX = "_";
    //用户数的 redis key
    public static final String USE_COUNT_REDIS_KET = "xiaoyun-user-count";

    public class UserTable {
        public static final String TABLE_NAME = "pb:user";

        public static final String FAMILY_B = "b";

        public static final String NAME = "name";

        public static final String AGE = "age";

        public static final String SEX = "sex";

        public static final String FAMILY_O = "o";

        public static final String PHONE = "phone";

        public static final String ADDRESS = "address";
    }

    public class PassTemplateTable {
        public static final String TABLE_NAME = "pb:passtemplate";

        public static final String FAMILY_B = "b";

        public static final String ID = "id";

        public static final String TITLE = "title";

        public static final String SUMMARY = "summary";

        public static final String DESC = "desc";

        public static final String HAS_TOKEN = "has_token";

        public static final String BACKGROUND = "background";

        public static final String FAMILY_C = "c";

        public static final String LIMIT = "limit";

        public static final String START = "start";

        public static final String END = "end";
    }

    public class PassTable {

        public static final String TABLE_NAME = "pb:pass";

        public static final String FAMILY_I = "i";

        public static final String USER_ID = "user_id";

        public static final String TEMPLATE_ID = "template_id";

        public static final String TOKEN = "token";

        public static final String ASSIGNED_DATE = "assigned_date";

        public static final String CON_DATE = "con_date";

    }

    public class Feedback {

        public static final String TABLE_NAME = "pb:feedback";

        public static final String FAMILY_I = "i";

        public static final String USER_ID = "user_id";

        public static final String TYPE = "type";

        public static final String TEMPLATE_ID = "template_id";

        public static final String COMMENT = "comment";


    }


}
